//
//  RequestConfig.h
//  TaduFramework
//  联网配置类
//  Created by 王越 on 14-4-16.
//  Copyright (c) 2014年 惠每. All rights reserved.
//

#import <Foundation/Foundation.h>

#define EXCEPTION_NETWORK_NAME @"ExceptionNetwork"
#define EXCEPTION_PARSER_NAME @"ExceptionParser"

#define EXCEPTION_NO_NETWORK @"无网络！"
#define EXCEPTION_NETWORK @"网络连接失败，请重试！"
#define EXCEPTION_NO_DATA @"联网无数据返回！"
#define EXCEPTION_PARSER_ERROR @"解析异常！"

#define NETWORK_MESSAGE_NAME @"联网提示"

#define NSUserKeySessionid @"sessionid"
#define NSUserCookie  @"userCookie"

#define NETWORK_TIME_OUT 10.0f

#define HTTP_GET_METHOD @"GET"
#define HTTP_POST_METHOD @"POST"

#define HTTP_RESPONSE_CODE @"code"
#define HTTP_RESPONSE_MSG @"msg"


@interface RequestConfig : NSObject

/**  获取COOKIE */
+ (NSString *)getCOOKIE;
/** 获取X-Client数据 */
+ (NSString *)getXClient;
/**获取ContentType*/
+ (NSString *)ContentType;
/**获取UserAgent*/
+ (NSString *)UserAgent;
/**获取header*/
+ (NSMutableDictionary *)getAllHeaders;

@end
